package com.mxpio.erp.common.jpa.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.mxpioframework.security.entity.BaseEntity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_BIZ_ORDER_TYPE")
@Schema(description="单据类别")
public class OrderType extends BaseEntity {
	
	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(name = "TYPE_CODE_", updatable = false)
	@Schema(description = "类别CODE")
	private String typeCode;
	
	@Column(name = "TYPE_NAME_")
	@Schema(description = "类别名称")
	private String typeName;
	
	@Column(name = "TYPE_PREFIX_")
	@Schema(description = "单号前缀")
	private String typePrefix;

	@Column(name = "TYPE_SIZE_")
	@Schema(description = "序列长度")
	private Integer typeSize;
	
	@Column(name = "TYPE_TEMPLATE_")
	@Schema(description = "单据模板")
	private String typeTemplate;
	
	@Column(name = "TYPE_FLOW_")
	@Schema(description = "单据流程")
	private String typeFlow;
	
	@Column(name = "IMPORT_TEMPLATE_")
	@Schema(description = "导入模板")
	private String importTemplate;

}
